import request from './request.js';



//授权
export function login(data) {
  return request({
    url: '/api/doctorApi/loginOrRegister',
    method: 'post',
   data
  })
}

//获取用户信息
export function getInfo(data) {
  return request({
    url: '/api/doctorApi/getInfo',
    method: 'post',
   data
  })
}

//获待审核会员列表
export function getPendingMedicalOrdersList(data) {
  return request({
    url: '/api/doctorApi/getPendingMedicalOrdersList',
    method: 'post',
   data
  })
}

//获待会员的所有医嘱
export function getMemberMedicalOrdersList(data) {
  return request({
    url: '/api/doctorApi/getMemberMedicalOrdersList',
    method: 'post',
   data
  })
}

//获取医嘱详情及方案
export function getMemberMedicalOrderDetail(data) {
  return request({
    url: '/api/doctorApi/getMemberMedicalOrderDetail',
    method: 'post',
   data
  })
}



//审核通过
export function passPlan(data) {
  return request({
    url: '/api/doctorApi/passPlan',
    method: 'post',
   data
  })
}

//机构列表
export function getOrgList() {
  return request({
    url: '/api/doctorApi/getOrgList',
    method: 'post'
 
  })
}


//字典
export function getDictData(data) {
  return request({
    url: '/api/commonApi/getDictData',
    method: 'post',
 data
  })
}


//认证
export function applyAuthentication(data) {
  return request({
    url: '/api/doctorApi/applyAuthentication',
    method: 'post',
   data
  })
}



//用户团队列表
export function doctorTeamList(data) {
  return request({
    url: '/api/doctorApi/doctorTeamList',
    method: 'post',
   data
  })
}

//根据医生角色查询医生列表
export function getDoctorListByRole(data) {
  return request({
    url: '/api/doctorApi/getDoctorListByRole',
    method: 'post',
   data
  })
}

//邀请医生加入团队
export function doctorInvitationJoinTeam(data) {
  return request({
    url: '/api/doctorApi/doctorInvitationJoinTeam',
    method: 'post',
   data
  })
}

//查看我的邀请
export function doctorInvitation(data) {
  return request({
    url: '/api/doctorApi/doctorInvitation',
    method: 'post',
   data
  })
}

//同意或者拒绝邀请
export function doctorInvitationPassOrRefuse(data) {
  return request({
    url: '/api/doctorApi/doctorInvitationPassOrRefuse',
    method: 'post',
   data
  })
}



//首页数据
export function doctorIndexData(data) {
  return request({
    url: '/api/doctorApi/doctorIndexData',
    method: 'post',
   data
  })
}



//查看医嘱详情
export function medicalOrderDetail(data) {
  return request({
    url: '/api/doctorApi/medicalOrderDetail',
    method: 'post',
   data
  })
}

//随访服务详情
export function changbanServiceInfo(data) {
  return request({
    url: '/api/doctorApi/changbanServiceInfo',
    method: 'post',
   data
  })
}

//医生端查看用户的关键行动列表
export function keyActions(data) {
  return request({
    url: '/api/doctorApi/keyActions',
    method: 'post',
   data
  })
}

//医生端新增关键行动
export function addKeyAction(data) {
  return request({
    url: '/api/doctorApi/addKeyAction',
    method: 'post',
   data
  })
}


//医生端删除关键行动
export function deleteKeyAction(data) {
  return request({
    url: '/api/doctorApi/deleteKeyAction',
    method: 'post',
   data
  })
}


//医生端钱包明细
export function myWalletDetail(data) {
  return request({
    url: '/api/doctorApi/myWalletDetail',
    method: 'post',
   data
  })
}

//更新医生端银行卡信息
export function bankCardInfo(data) {
  return request({
    url: '/api/doctorApi/bankCardInfo',
    method: 'post',
   data
  })
}

//获取医生端银行卡信息
export function getBankCardInfo(data) {
  return request({
    url: '/api/doctorApi/getBankCardInfo',
    method: 'post',
   data
  })
}


//每月账单
export function monthBill(data) {
  return request({
    url: '/api/doctorApi/monthBill',
    method: 'post',
   data
  })
}

//打款记录
export function paymentRecord(data) {
  return request({
    url: '/api/doctorApi/paymentRecord',
    method: 'post',
   data
  })
}


//提现
export function applyWithdraw(data) {
  return request({
    url: '/api/doctorApi/applyWithdraw',
    method: 'post',
   data
  })
}





//用户信息
export function memberDetail(data) {
  return request({
    url: '/api/doctorApi/memberDetail',
    method: 'post',
   data
  })
}

//查看用户待邀请的角色
export function getInvitedList(data) {
  return request({
    url: '/api/doctorApi/getInvitedList',
    method: 'post',
   data
  })
}


//提交审核方案
export function submitPlan(data) {
  return request({
    url: '/api/doctorApi/submitPlan',
    method: 'post',
   data
  })
}


//获取用户团队信息
export function teamList(data) {
  return request({
    url: '/api/doctorApi/teamList',
    method: 'post',
   data
  })
}

//团队添加留言板信息
export function addTeamMessage(data) {
  return request({
    url: '/api/doctorApi/addTeamMessage',
    method: 'post',
   data
  })
}


//医嘱列表
export function medicalOrders(data) {
  return request({
    url: '/api/doctorApi/medicalOrders',
    method: 'post',
   data
  })
}

//医生查看用户的事件列表
export function eventsList(data) {
  return request({
    url: '/api/doctorApi/eventsList',
    method: 'post',
   data
  })
}

//医生查看未读消息
export function getUnreadSummaryByDoctor(data) {
  return request({
    url: '/api/doctorApi/getUnreadSummaryByDoctor',
    method: 'post',
   data
  })
}

//医生查看这个团队的聊天内容
export function getChatListByTeamId(data) {
  return request({
    url: '/api/doctorApi/getChatListByTeamId',
    method: 'post',
   data
  })
}

//医生发送消息
export function sendTeamMessage(data) {
  return request({
    url: '/api/doctorApi/sendTeamMessage',
    method: 'post',
   data
  })
}



//医生查看待入账
export function getWaitInAccountDetail(data) {
  return request({
    url: '/api/doctorApi/getWaitInAccountDetail',
    method: 'post',
   data
  })
}


//医生扫描代理商的二维码进入首页
export function buyService(data) {
  return request({
    url: '/api/doctorApi/buyService',
    method: 'post',
   data
  })
}
export function updatePlan(data) {
  return request({
    url: '/api/doctorApi/updatePlan',
    method: 'post',
   data
  })
}




















































































